package com.welab.springcloud.demo.common.exception;


import lombok.Data;

@Data
public class BizException extends RuntimeException{

    /**
     * 具体异常码
     */
    private int code;

    /**
     * 异常信息
     */
    private String message;


    public BizException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BizException(int code, String format, Object... args) {
        super(String.format(format, args));
        this.code = code;
        this.message = String.format(format, args);
    }




}
